/*
 * Powered By free
 * Web Site: 
 * Since 2018 - 2021
 */
package com.menhai.personmanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.menhai.personmanagement.entity.FollowupRecord;
/**
 * @author free
 * @version 1.0
 * @since 2021/12/06 09:38
 */
import com.menhai.personmanagement.entity.MbCommonRecord;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MbCommonRecordMapper{
	
	/**
	 * insert
	 * 
	 * @author longenyue
	 * @date 2021/12/06 09:38
	 * @param mbCommonRecord
	 * @return Integer
	 */
	public Integer insert(MbCommonRecord mbCommonRecord);
	
	/**
	 * update
	 * 
	 * @author longenyue
	 * @date 2021/12/06 09:38
	 * @param mbCommonRecord
	 * @return Integer
	 */
	public Integer update(MbCommonRecord mbCommonRecord);

	/**
	 * batchUpdate
	 * 
	 * @author longenyue
	 * @date 2021/12/06 09:38
	 * @param mbCommonRecord
	 * @return Integer
	 */
	public Integer batchUpdate(MbCommonRecord mbCommonRecord);
	
	/**
	 * delete
	 * 
	 * @author longenyue
	 * @date 2021/12/06 09:38
	 * @param id
	 * @return Integer
	 */
	public Integer delete(String id);
	
	/**
	 * getOneByCondition
	 * 
	 * @author longenyue
	 * @date 2021/12/06 09:38
	 * @param mbCommonRecord
	 * @return Integer
	 */
	public MbCommonRecord getOneByCondition(MbCommonRecord mbCommonRecord);
	
	/**
	 * getListByCondition
	 * 
	 * @author longenyue
	 * @date 2021/12/06 09:38
	 * @param mbCommonRecord
	 * @return Integer
	 */
	public List<Map<String,Object>> getListByCondition(MbCommonRecord mbCommonRecord);
	
	/**
	 * getCountByCondition
	 * 
	 * @author longenyue
	 * @date 2021/12/06 09:38
	 * @param mbCommonRecord
	 * @return Integer
	 */
	public Integer getCountByCondition(MbCommonRecord mbCommonRecord);
	
	IPage<MbCommonRecord> getListByConditionByPage(@Param("page")Page<MbCommonRecord> page, @Param("mbCommonRecord") MbCommonRecord mbCommonRecord);


	public List<Map<String,Object>> getOneById(MbCommonRecord mbCommonRecord);

}
